package com.zsx.add;

import org.aspectj.lang.ProceedingJoinPoint;

public class AddWay {
    public void quanXian(){
        System.out.println("我执行权限校验功能");
    }
    public void log(){
        System.out.println("我执行日志功能");
    }

    public void huanRao(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        quanXian();
        proceedingJoinPoint.proceed();
        log();
    }
    public void last(){
        System.out.println("我执行了最终增强");
    }
    public void err(){
        System.out.println("我是一个异常处理增强");
    }

}
